package com.briup.app01.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.briup.app01.bean.Activity;
import com.briup.app01.dao.ActivityMapper;
import com.briup.app01.service.ActivityService;

@Service
public class ActivityServiceImpl implements ActivityService{

	@Autowired
	private ActivityMapper atvMapper;

	public void save(Activity activity) {
		// TODO 自动生成的方法存根
		atvMapper.save(activity);
		
	}

	public void deleteById(int id) {
		// TODO 自动生成的方法存根
		atvMapper.deleteById(id);
	}

	public void update(Activity activity) {
		// TODO 自动生成的方法存根
		atvMapper.update(activity);
	}

	public Activity selectById(int id) {
		// TODO 自动生成的方法存根
		return atvMapper.selectById(id);
	}

	public List<Activity> selectALL() {
		// TODO 自动生成的方法存根
		return atvMapper.selectAll();
	}
	
}
